<template>
  <div class="home">
    <h3>首页</h3>
    <el-button @click="$router.push({
      path: '/state',
      query: {
        name: '张三',
        foods: ['西红柿炒蛋', '红烧肉']
      }
    })" class="mg-right-10">去看store</el-button>
  </div>
</template>

<script>

export default {
  name: 'home',
  data() {
    return {

    };
  },
  created () {
    // 调用主项目中注入的方法
    this.$say()
  },
  methods: {

  },
  components: {

  },
};
</script>


<style lang="scss">
.home {


}
</style>